/*
 * User: user
 * Date: 10/12/2007
 * Time: 15:42:06
 */
package org.conann.metadata.scanning;

import com.google.common.base.Preconditions;
import org.conann.metadata.records.MethodRecord;

import java.lang.reflect.Method;

public class MethodScanner extends ElementScanner<MethodRecord, Method> {

    @Override
    public MethodRecord scan(Method method) {
        Preconditions.checkNotNull(method);
        MethodRecord record = new MethodRecord(method);

        validate(record);
        return record;
    }
}